package com.eascs.admin.o2o.badloan.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.eascs.admin.common.utils.EntityToStringUtils;

@Entity
@Table(name = "o2o_badloan_record")
public class O2oBadRecordEntity extends EntityToStringUtils{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1578736952487694641L;

	@Id
	@Column(name = "id")
	private String id;

	@Column(name = "loanapply_no")
	private String loanapplyNo;

	@Column(name = "loan_data_id")
	private String loanDataId;

	@Column(name = "bill_code")
	private String billCode;

	@Column(name = "new_time")
	private Date newTime;

	@Column(name = "now_should_principal")
	private BigDecimal nowShouldPrincipal;

	@Column(name = "now_should_capital")
	private BigDecimal nowShouldCapital;

	@Column(name = "now_should_interest")
	private BigDecimal nowShouldInterest;

	@Column(name = "this_payment_principal")
	private BigDecimal thisPaymentPrincipal;

	@Column(name = "this_payment_capital")
	private BigDecimal thisPaymentCapital;

	@Column(name = "this_payment_interest")
	private BigDecimal thisPaymentInterest;

	@Column(name = "this_payment_date")
	private Date thisPaymentDate;

	@Column(name = "payment_interval_date")
	private int paymentIntervalDate;

	@Column(name = "now_arrears")
	private BigDecimal nowArrears;

	@Column(name = "flow_status")
	private String flowStatus;

	@Column(name = "flow_start_time")
	private Date flowStartTime;

	@Column(name = "flow_end_time")
	private Date flowEndTime;

	@Column(name = "flow_start_userno")
	private String flowStartUserno;

	@Column(name = "flow_start_username")
	private String flowStartUsername;

	@Column(name = "is_delete")
	private String isDelete;

	@Column(name = "payee")
	private String payee;

	@Column(name = "pay_account")
	private String payAccount;

	@Column(name = "pay_time")
	private Date payTime;

	@Column(name = "pay_deposit")
	private String payDeposit;

	@Column(name = "pay_amount")
	private BigDecimal payAmount;

	@Column(name = "pay_account_other")
	private String payAccountOther;
	
	@Column(name = "liquidate_id")
	private String liquiId;
	
	@Column(name = "liquidate_name")
	private String liquiName;
	
	/**
	 * 主键
	 */
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 关联主表id
	 */
	public String getLoanapplyNo() {
		return loanapplyNo;
	}

	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}

	public String getLoanDataId() {
		return loanDataId;
	}

	public void setLoanDataId(String loanDataId) {
		this.loanDataId = loanDataId;
	}

	/**
	 * 贷款编号
	 */
	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	/**
	 * 发生时间
	 */
	public Date getNewTime() {
		return newTime;
	}

	public void setNewTime(Date newTime) {
		this.newTime = newTime;
	}

	/**
	 * 当前应还本息
	 */
	public BigDecimal getNowShouldPrincipal() {
		return nowShouldPrincipal;
	}

	public void setNowShouldPrincipal(BigDecimal nowShouldPrincipal) {
		this.nowShouldPrincipal = nowShouldPrincipal;
	}

	/**
	 * 当前应还本金
	 */
	public BigDecimal getNowShouldCapital() {
		return nowShouldCapital;
	}

	public void setNowShouldCapital(BigDecimal nowShouldCapital) {
		this.nowShouldCapital = nowShouldCapital;
	}

	/**
	 * 当前应还利息
	 */
	public BigDecimal getNowShouldInterest() {
		return nowShouldInterest;
	}

	public void setNowShouldInterest(BigDecimal nowShouldInterest) {
		this.nowShouldInterest = nowShouldInterest;
	}

	/**
	 * 本次回款本息
	 */
	public BigDecimal getThisPaymentPrincipal() {
		return thisPaymentPrincipal;
	}

	public void setThisPaymentPrincipal(BigDecimal thisPaymentPrincipal) {
		this.thisPaymentPrincipal = thisPaymentPrincipal;
	}

	/**
	 * 本次回款本金
	 */
	public BigDecimal getThisPaymentCapital() {
		return thisPaymentCapital;
	}

	public void setThisPaymentCapital(BigDecimal thisPaymentCapital) {
		this.thisPaymentCapital = thisPaymentCapital;
	}

	/**
	 * 本次回款利息
	 */
	public BigDecimal getThisPaymentInterest() {
		return thisPaymentInterest;
	}

	public void setThisPaymentInterest(BigDecimal thisPaymentInterest) {
		this.thisPaymentInterest = thisPaymentInterest;
	}

	/**
	 * 本次实际还款时间
	 */
	public Date getThisPaymentDate() {
		return thisPaymentDate;
	}

	public void setThisPaymentDate(Date thisPaymentDate) {
		this.thisPaymentDate = thisPaymentDate;
	}

	/**
	 * 还款间隔(月)
	 */
	public int getPaymentIntervalDate() {
		return paymentIntervalDate;
	}

	public void setPaymentIntervalDate(int paymentIntervalDate) {
		this.paymentIntervalDate = paymentIntervalDate;
	}

	/**
	 * 当前欠款余额
	 */
	public BigDecimal getNowArrears() {
		return nowArrears;
	}

	public void setNowArrears(BigDecimal nowArrears) {
		this.nowArrears = nowArrears;
	}

	/**
	 * 回款流程状态：NEW 新建，RUN 流程中，CLO 结束
	 */
	public String getFlowStatus() {
		return flowStatus;
	}

	public void setFlowStatus(String flowStatus) {
		this.flowStatus = flowStatus;
	}

	/**
	 * 流程开始时间
	 */
	public Date getFlowStartTime() {
		return flowStartTime;
	}

	public void setFlowStartTime(Date flowStartTime) {
		this.flowStartTime = flowStartTime;
	}

	/**
	 * 流程结束时间
	 */
	public Date getFlowEndTime() {
		return flowEndTime;
	}

	public void setFlowEndTime(Date flowEndTime) {
		this.flowEndTime = flowEndTime;
	}

	/**
	 * 启动流程者id
	 */
	public String getFlowStartUserno() {
		return flowStartUserno;
	}

	public void setFlowStartUserno(String flowStartUserno) {
		this.flowStartUserno = flowStartUserno;
	}

	/**
	 * 启动流程者姓名
	 */
	public String getFlowStartUsername() {
		return flowStartUsername;
	}

	public void setFlowStartUsername(String flowStartUsername) {
		this.flowStartUsername = flowStartUsername;
	}

	/**
	 * 是否删除
	 */
	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	/**
	 * 收款人
	 */
	public String getPayee() {
		return payee;
	}

	public void setPayee(String payee) {
		this.payee = payee;
	}

	/**
	 * 收款账户
	 */
	public String getPayAccount() {
		return payAccount;
	}

	public void setPayAccount(String payAccount) {
		this.payAccount = payAccount;
	}

	/**
	 * 收款时间
	 */
	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	/**
	 * 收款开户行
	 */
	public String getPayDeposit() {
		return payDeposit;
	}

	public void setPayDeposit(String payDeposit) {
		this.payDeposit = payDeposit;
	}

	/**
	 * 收款金额
	 */
	public BigDecimal getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(BigDecimal payAmount) {
		this.payAmount = payAmount;
	}

	public String getPayAccountOther() {
		return payAccountOther;
	}

	public void setPayAccountOther(String payAccountOther) {
		this.payAccountOther = payAccountOther;
	}

	public String getLiquiId() {
		return liquiId;
	}

	public void setLiquiId(String liquiId) {
		this.liquiId = liquiId;
	}

	public String getLiquiName() {
		return liquiName;
	}

	public void setLiquiName(String liquiName) {
		this.liquiName = liquiName;
	}

}
